package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.AppDTO;
import com.huiminpay.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName: AppCovert
 * @Package: com.huiminpay.merchant.convert
 * @Description: App对象转换
 * @Author 谢同学
 * @Create 2023/11/20 19:04
 * @Version 1.0
 */
@Mapper
public interface AppCovert {
    AppCovert INSTANCE = Mappers.getMapper(AppCovert.class);

    AppDTO entity2dto(App entity);

    App dto2entity(AppDTO dto);

    List<AppDTO> listEntity2dto(List<App> app);

    List<App> listdto2listEntity(List<AppDTO> app);

}
